home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / gtksourceview-2.0 / language-specs / css.lang < prev    next >
Extensible Markup Language  |  2009-10-02  |  17KB  |  511 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Scott Martin <scott@coffeeblack.org>
  5.  Copyright (C) 2004 Scott Martin <scott@coffeeblack.org>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <!--
  24.     Proposed language specification for CSS (Cascading Style Sheet) files.
  25.  
  26.     Reference used:
  27.          http://www.w3.org/TR/CSS2/
  28.  
  29.      Tested with:
  30.          http://www.simplebits.com/css/simple.css
  31.  
  32.     Submitted by
  33.  
  34.         Converted to new format with convert.py
  35. -->
  36. <language id="css" _name="CSS" version="2.0" _section="Others">
  37.   <metadata>
  38.     <property name="mimetypes">text/css</property>
  39.     <property name="globs">*.css;*.CSSL</property>
  40.     <property name="block-comment-start">/*</property>
  41.     <property name="block-comment-end">*/</property>
  42.   </metadata>
  43.  
  44.   <styles>
  45.     <style id="comment" _name="Comment" map-to="def:comment"/>
  46.     <style id="error" _name="Error" map-to="def:error"/>
  47.     <style id="others-2" _name="Others 2"/>
  48.     <style id="string" _name="String" map-to="def:string"/>
  49.     <style id="color" _name="Color" map-to="def:base-n-integer"/>
  50.     <style id="others-3" _name="Others 3"/>
  51.     <style id="function" _name="Function" map-to="def:function"/>
  52.     <style id="decimal" _name="Decimal" map-to="def:decimal"/>
  53.     <style id="dimension" _name="Dimension" map-to="def:floating-point"/>
  54.     <style id="known-property-values" _name="Known Property Value" map-to="def:type"/>
  55.     <style id="at-rules" _name="at-rules" map-to="def:keyword"/>
  56.     <style id="keyword" _name="Keyword" map-to="def:keyword"/>
  57.   </styles>
  58.  
  59.   <definitions>
  60.  
  61.     <context id="comment" style-ref="comment">
  62.       <start>/\*</start>
  63.       <end>\*/</end>
  64.       <include>
  65.         <context style-ref="error" extend-parent="false">
  66.           <match>/\*</match>
  67.         </context>
  68.         <context ref="def:in-comment"/>
  69.       </include>
  70.     </context>
  71.  
  72.     <context id="close-comment-outside-comment" style-ref="error">
  73.       <match>\*/(?!\*)</match>
  74.     </context>
  75.  
  76.     <context id="unicode-character-reference" style-ref="others-2">
  77.       <match>\\([a-fA-F0-9]{1,5}[ \t]|[a-fA-F0-9]{6})</match>
  78.     </context>
  79.  
  80.     <context id="selector-pseudo-elements" style-ref="function">
  81.       <keyword>first-line</keyword>
  82.       <keyword>first-letter</keyword>
  83.       <keyword>before</keyword>
  84.       <keyword>after</keyword>
  85.     </context>
  86.  
  87.     <context id="selector-pseudo-classes" style-ref="function">
  88.       <keyword>first-child</keyword>
  89.       <keyword>link</keyword>
  90.       <keyword>visited</keyword>
  91.       <keyword>hover</keyword>
  92.       <keyword>active</keyword>
  93.       <keyword>focus</keyword>
  94.       <keyword>lang</keyword>
  95.     </context>
  96.  
  97.     <context id="at-rules" style-ref="at-rules">
  98.       <prefix>^[ \t]*@</prefix>
  99.       <keyword>charset</keyword>
  100.       <keyword>font-face</keyword>
  101.       <keyword>media</keyword>
  102.       <keyword>page</keyword>
  103.       <keyword>import</keyword>
  104.     </context>
  105.  
  106.     <context id="hexadecimal-color" style-ref="color">
  107.       <match>#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})</match>
  108.     </context>
  109.  
  110.     <context id="function" style-ref="function">
  111.       <start>[a-zA-Z][a-z0-9-]+\(</start>
  112.       <end>\)</end>
  113.       <include>
  114.         <context ref="def:escape"/>
  115.         <context ref="def:line-continue"/>
  116.       </include>
  117.     </context>
  118.  
  119.     <context id="dimension" style-ref="dimension">
  120.       <match>[\+-]?([0-9]+|[0-9]*\.[0-9]+)(%|e(m|x)|p(x|t|c)|in|ft|(m|c)m|k?Hz|deg|g?rad|m?s)</match>
  121.     </context>
  122.  
  123.     <context id="number" style-ref="decimal">
  124.       <match>\b(0|[\+-]?[1-9][0-9]*)</match>
  125.     </context>
  126.  
  127.     <context id="unicode-range" style-ref="others-2">
  128.       <match>[uU]\+[a-fA-F0-9]{1,6}(-[a-fA-F0-9]{1,6})?</match>
  129.     </context>
  130.  
  131.     <context id="importance-modifier" style-ref="keyword">
  132.       <match>\![ \t]*important</match>
  133.     </context>
  134.  
  135.     <context id="property-names" style-ref="keyword">
  136.       <keyword>azimuth</keyword>
  137.       <keyword>background-attachment</keyword>
  138.       <keyword>background-color</keyword>
  139.       <keyword>background-image</keyword>
  140.       <keyword>background-position</keyword>
  141.       <keyword>background-repeat</keyword>
  142.       <keyword>background</keyword>
  143.       <keyword>border-bottom-color</keyword>
  144.       <keyword>border-bottom-style</keyword>
  145.       <keyword>border-bottom-width</keyword>
  146.       <keyword>border-bottom</keyword>
  147.       <keyword>border-collapse</keyword>
  148.       <keyword>border-color</keyword>
  149.       <keyword>border-left-color</keyword>
  150.       <keyword>border-left-style</keyword>
  151.       <keyword>border-left-width</keyword>
  152.       <keyword>border-left</keyword>
  153.       <keyword>border-right-color</keyword>
  154.       <keyword>border-right-style</keyword>
  155.       <keyword>border-right-width</keyword>
  156.       <keyword>border-right</keyword>
  157.       <keyword>border-spacing</keyword>
  158.       <keyword>border-style</keyword>
  159.       <keyword>border-top-color</keyword>
  160.       <keyword>border-top-style</keyword>
  161.       <keyword>border-top-width</keyword>
  162.       <keyword>border-top</keyword>
  163.       <keyword>border-width</keyword>
  164.       <keyword>border</keyword>
  165.       <keyword>bottom</keyword>
  166.       <keyword>caption-side</keyword>
  167.       <keyword>clear</keyword>
  168.       <keyword>clip</keyword>
  169.       <keyword>color</keyword>
  170.       <keyword>content</keyword>
  171.       <keyword>counter-increment</keyword>
  172.       <keyword>counter-reset</keyword>
  173.       <keyword>cue-after</keyword>
  174.       <keyword>cue-before</keyword>
  175.       <keyword>cue</keyword>
  176.       <keyword>cursor</keyword>
  177.       <keyword>direction</keyword>
  178.       <keyword>display</keyword>
  179.       <keyword>elevation</keyword>
  180.       <keyword>empty-cells</keyword>
  181.       <keyword>float</keyword>
  182.       <keyword>font-family</keyword>
  183.       <keyword>font-size-adjust</keyword>
  184.       <keyword>font-size</keyword>
  185.       <keyword>font-style</keyword>
  186.       <keyword>font-variant</keyword>
  187.       <keyword>font-weight</keyword>
  188.       <keyword>font</keyword>
  189.       <keyword>height</keyword>
  190.       <keyword>left</keyword>
  191.       <keyword>letter-spacing</keyword>
  192.       <keyword>line-height</keyword>
  193.       <keyword>list-style-image</keyword>
  194.       <keyword>list-style-position</keyword>
  195.       <keyword>list-style-type</keyword>
  196.       <keyword>list-style</keyword>
  197.       <keyword>margin-bottom</keyword>
  198.       <keyword>margin-left</keyword>
  199.       <keyword>margin-right</keyword>
  200.       <keyword>margin-top</keyword>
  201.       <keyword>margin</keyword>
  202.       <keyword>marker-offset</keyword>
  203.       <keyword>marks</keyword>
  204.       <keyword>max-height</keyword>
  205.       <keyword>max-width</keyword>
  206.       <keyword>min-height</keyword>
  207.       <keyword>min-width</keyword>
  208.       <keyword>orphans</keyword>
  209.       <keyword>outline-color</keyword>
  210.       <keyword>outline-style</keyword>
  211.       <keyword>outline-width</keyword>
  212.       <keyword>outline</keyword>
  213.       <keyword>overflow</keyword>
  214.       <keyword>padding-bottom</keyword>
  215.       <keyword>padding-left</keyword>
  216.       <keyword>padding-right</keyword>
  217.       <keyword>padding-top</keyword>
  218.       <keyword>padding</keyword>
  219.       <keyword>page-break-after</keyword>
  220.       <keyword>page-break-before</keyword>
  221.       <keyword>page-break-inside</keyword>
  222.       <keyword>page</keyword>
  223.       <keyword>pause-after</keyword>
  224.       <keyword>pause-before</keyword>
  225.       <keyword>pause</keyword>
  226.       <keyword>pitch-range</keyword>
  227.       <keyword>pitch</keyword>
  228.       <keyword>play-during</keyword>
  229.       <keyword>position</keyword>
  230.       <keyword>quotes</keyword>
  231.       <keyword>richness</keyword>
  232.       <keyword>right</keyword>
  233.       <keyword>size</keyword>
  234.       <keyword>speak-header</keyword>
  235.       <keyword>speak-numerical</keyword>
  236.       <keyword>speak-punctuation</keyword>
  237.       <keyword>speak</keyword>
  238.       <keyword>speech-rate</keyword>
  239.       <keyword>stress</keyword>
  240.       <keyword>table-layout</keyword>
  241.       <keyword>text-align</keyword>
  242.       <keyword>text-decoration</keyword>
  243.       <keyword>text-indent</keyword>
  244.       <keyword>text-shadow</keyword>
  245.       <keyword>text-transform</keyword>
  246.       <keyword>top</keyword>
  247.       <keyword>unicode-bidi</keyword>
  248.       <keyword>vertical-align</keyword>
  249.       <keyword>visibility</keyword>
  250.       <keyword>voice-family</keyword>
  251.       <keyword>volume</keyword>
  252.       <keyword>white-space</keyword>
  253.       <keyword>widows</keyword>
  254.       <keyword>width</keyword>
  255.       <keyword>word-spacing</keyword>
  256.       <keyword>z-index</keyword>
  257.     </context>
  258.  
  259.     <context id="known-property-values" style-ref="known-property-values">
  260.       <keyword>above</keyword>
  261.       <keyword>absolute</keyword>
  262.       <keyword>always</keyword>
  263.       <keyword>aqua</keyword>
  264.       <keyword>armenian</keyword>
  265.       <keyword>auto</keyword>
  266.       <keyword>avoid</keyword>
  267.       <keyword>baseline</keyword>
  268.       <keyword>behind</keyword>
  269.       <keyword>below</keyword>
  270.       <keyword>bidi-override</keyword>
  271.       <keyword>black</keyword>
  272.       <keyword>blink</keyword>
  273.       <keyword>block</keyword>
  274.       <keyword>blue</keyword>
  275.       <keyword>bolder</keyword>
  276.       <keyword>bold</keyword>
  277.       <keyword>bottom</keyword>
  278.       <keyword>capitalize</keyword>
  279.       <keyword>center-left</keyword>
  280.       <keyword>center-right</keyword>
  281.       <keyword>center</keyword>
  282.       <keyword>circle</keyword>
  283.       <keyword>cjk-ideographic</keyword>
  284.       <keyword>close-quote</keyword>
  285.       <keyword>code</keyword>
  286.       <keyword>collapse</keyword>
  287.       <keyword>compact</keyword>
  288.       <keyword>condensed</keyword>
  289.       <keyword>continuous</keyword>
  290.       <keyword>crop</keyword>
  291.       <keyword>crosshair</keyword>
  292.       <keyword>cross</keyword>
  293.       <keyword>cue-after</keyword>
  294.       <keyword>cue-before</keyword>
  295.       <keyword>cursive</keyword>
  296.       <keyword>dashed</keyword>
  297.       <keyword>decimal</keyword>
  298.       <keyword>decimal-leading-zero</keyword>
  299.       <keyword>default</keyword>
  300.       <keyword>digits</keyword>
  301.       <keyword>disc</keyword>
  302.       <keyword>dotted</keyword>
  303.       <keyword>double</keyword>
  304.       <keyword>embed</keyword>
  305.       <keyword>e-resize</keyword>
  306.       <keyword>expanded</keyword>
  307.       <keyword>extra-condensed</keyword>
  308.       <keyword>extra-expanded</keyword>
  309.       <keyword>fantasy</keyword>
  310.       <keyword>far-left</keyword>
  311.       <keyword>far-right</keyword>
  312.       <keyword>faster</keyword>
  313.       <keyword>fast</keyword>
  314.       <keyword>fixed</keyword>
  315.       <keyword>fixed</keyword>
  316.       <keyword>fuchsia</keyword>
  317.       <keyword>georgian</keyword>
  318.       <keyword>gray</keyword>
  319.       <keyword>green</keyword>
  320.       <keyword>groove</keyword>
  321.       <keyword>hebrew</keyword>
  322.       <keyword>help</keyword>
  323.       <keyword>hidden</keyword>
  324.       <keyword>hide</keyword>
  325.       <keyword>higher</keyword>
  326.       <keyword>high</keyword>
  327.       <keyword>hiragana-iroha</keyword>
  328.       <keyword>hiragana</keyword>
  329.       <keyword>inherit</keyword>
  330.       <keyword>inline</keyword>
  331.       <keyword>inline-table</keyword>
  332.       <keyword>inset</keyword>
  333.       <keyword>inside</keyword>
  334.       <keyword>invert</keyword>
  335.       <keyword>italic</keyword>
  336.       <keyword>justify</keyword>
  337.       <keyword>katakana-iroha</keyword>
  338.       <keyword>katakana</keyword>
  339.       <keyword>landscape</keyword>
  340.       <keyword>large</keyword>
  341.       <keyword>larger</keyword>
  342.       <keyword>left</keyword>
  343.       <keyword>left-side</keyword>
  344.       <keyword>leftwards</keyword>
  345.       <keyword>level</keyword>
  346.       <keyword>lighter</keyword>
  347.       <keyword>lime</keyword>
  348.       <keyword>line-through</keyword>
  349.       <keyword>list-item</keyword>
  350.       <keyword>loud</keyword>
  351.       <keyword>lower-alpha</keyword>
  352.       <keyword>lowercase</keyword>
  353.       <keyword>lower-greek</keyword>
  354.       <keyword>lower-latin</keyword>
  355.       <keyword>lower-roman</keyword>
  356.       <keyword>lower</keyword>
  357.       <keyword>low</keyword>
  358.       <keyword>ltr</keyword>
  359.       <keyword>marker</keyword>
  360.       <keyword>maroon</keyword>
  361.       <keyword>medium</keyword>
  362.       <keyword>medium</keyword>
  363.       <keyword>middle</keyword>
  364.       <keyword>mix</keyword>
  365.       <keyword>monospace</keyword>
  366.       <keyword>move</keyword>
  367.       <keyword>narrower</keyword>
  368.       <keyword>navy</keyword>
  369.       <keyword>ne-resize</keyword>
  370.       <keyword>no-close-quote</keyword>
  371.       <keyword>none</keyword>
  372.       <keyword>no-open-quote</keyword>
  373.       <keyword>no-repeat</keyword>
  374.       <keyword>normal</keyword>
  375.       <keyword>nowrap</keyword>
  376.       <keyword>n-resize</keyword>
  377.       <keyword>nw-resize</keyword>
  378.       <keyword>oblique</keyword>
  379.       <keyword>olive</keyword>
  380.       <keyword>once</keyword>
  381.       <keyword>open-quote</keyword>
  382.       <keyword>outset</keyword>
  383.       <keyword>outside</keyword>
  384.       <keyword>overline</keyword>
  385.       <keyword>pointer</keyword>
  386.       <keyword>portait</keyword>
  387.       <keyword>pre</keyword>
  388.       <keyword>purple</keyword>
  389.       <keyword>red</keyword>
  390.       <keyword>relative</keyword>
  391.       <keyword>repeat-x</keyword>
  392.       <keyword>repeat-y</keyword>
  393.       <keyword>repeat</keyword>
  394.       <keyword>ridge</keyword>
  395.       <keyword>right-side</keyword>
  396.       <keyword>right</keyword>
  397.       <keyword>rightwards</keyword>
  398.       <keyword>rlt</keyword>
  399.       <keyword>run-in</keyword>
  400.       <keyword>sans-serif</keyword>
  401.       <keyword>scroll</keyword>
  402.       <keyword>scroll</keyword>
  403.       <keyword>semi-condensed</keyword>
  404.       <keyword>semi-expanded</keyword>
  405.       <keyword>separate</keyword>
  406.       <keyword>se-resize</keyword>
  407.       <keyword>serif</keyword>
  408.       <keyword>show</keyword>
  409.       <keyword>silent</keyword>
  410.       <keyword>silver</keyword>
  411.       <keyword>slower</keyword>
  412.       <keyword>slow</keyword>
  413.       <keyword>small-caps</keyword>
  414.       <keyword>smaller</keyword>
  415.       <keyword>small</keyword>
  416.       <keyword>soft</keyword>
  417.       <keyword>solid</keyword>
  418.       <keyword>spell-out</keyword>
  419.       <keyword>square</keyword>
  420.       <keyword>s-resize</keyword>
  421.       <keyword>static</keyword>
  422.       <keyword>sub</keyword>
  423.       <keyword>super</keyword>
  424.       <keyword>sw-resize</keyword>
  425.       <keyword>table-caption</keyword>
  426.       <keyword>table-cell</keyword>
  427.       <keyword>table-column-group</keyword>
  428.       <keyword>table-column</keyword>
  429.       <keyword>table-footer-group</keyword>
  430.       <keyword>table-header-group</keyword>
  431.       <keyword>table-row-group</keyword>
  432.       <keyword>table-row</keyword>
  433.       <keyword>table</keyword>
  434.       <keyword>teal</keyword>
  435.       <keyword>text-bottom</keyword>
  436.       <keyword>text</keyword>
  437.       <keyword>text-top</keyword>
  438.       <keyword>thick</keyword>
  439.       <keyword>thin</keyword>
  440.       <keyword>top</keyword>
  441.       <keyword>top</keyword>
  442.       <keyword>transparent</keyword>
  443.       <keyword>ultra-condensed</keyword>
  444.       <keyword>ultra-expanded</keyword>
  445.       <keyword>underline</keyword>
  446.       <keyword>upper-alpha</keyword>
  447.       <keyword>uppercase</keyword>
  448.       <keyword>upper-latin</keyword>
  449.       <keyword>upper-roman</keyword>
  450.       <keyword>visible</keyword>
  451.       <keyword>wait</keyword>
  452.       <keyword>white</keyword>
  453.       <keyword>wider</keyword>
  454.       <keyword>w-resize</keyword>
  455.       <keyword>x-fast</keyword>
  456.       <keyword>x-high</keyword>
  457.       <keyword>x-large</keyword>
  458.       <keyword>x-loud</keyword>
  459.       <keyword>x-low</keyword>
  460.       <keyword>x-slow</keyword>
  461.       <keyword>x-small</keyword>
  462.       <keyword>x-soft</keyword>
  463.       <keyword>xx-large</keyword>
  464.       <keyword>xx-small</keyword>
  465.       <keyword>yellow</keyword>
  466.     </context>
  467.  
  468.     <context id="punctuators" style-ref="others-3">
  469.       <match>[{}();,]</match>
  470.     </context>
  471.  
  472.     <context id="attribute-value-delimiters" style-ref="others-2">
  473.       <match>(\[|\])</match>
  474.     </context>
  475.  
  476.     <context id="operators" style-ref="function">
  477.       <match>[@%~|!=]</match>
  478.     </context>
  479.  
  480.     <context id="selector-grammar" style-ref="others-3">
  481.       <match>[*#.>+]</match>
  482.     </context>
  483.  
  484.     <context id="css">
  485.       <include>
  486.         <context ref="def:string"/>
  487.         <context ref="def:single-quoted-string"/>
  488.         <context ref="comment"/>
  489.         <context ref="close-comment-outside-comment"/>
  490.         <context ref="unicode-character-reference"/>
  491.         <context ref="selector-pseudo-elements"/>
  492.         <context ref="selector-pseudo-classes"/>
  493.         <context ref="at-rules"/>
  494.         <context ref="hexadecimal-color"/>
  495.         <context ref="function"/>
  496.         <context ref="dimension"/>
  497.         <context ref="number"/>
  498.         <context ref="unicode-range"/>
  499.         <context ref="importance-modifier"/>
  500.         <context ref="property-names"/>
  501.         <context ref="known-property-values"/>
  502.         <context ref="punctuators"/>
  503.         <context ref="attribute-value-delimiters"/>
  504.         <context ref="operators"/>
  505.         <context ref="selector-grammar"/>
  506.       </include>
  507.     </context>
  508.  
  509.   </definitions>
  510. </language>
  511.